namespace JamesFan.FetchAreaCodes.Repository;

static class CodeEntryExtensions {
    public static AreaCode ToEntity(this CodeEntry entry) {
        return new AreaCode {
            Id = entry.Id,
            Code = entry.Code,
            Name = entry.Name,
            ParentId = entry.ParentId,
            Level = entry.Level,
        };
    }
}
